package com.bw.lib_db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverter
import androidx.room.TypeConverters
import com.example.lib_db.db.room.entity.CustomTypeConverters

@Entity(tableName = "user_info")
@TypeConverters(CustomTypeConverters::class)
data class UserInfo (

    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    @ColumnInfo("user_id")
    val userId:Int = 0,
    @ColumnInfo("account_id")
    val accountId:Int = 0,
    @ColumnInfo("c_Time")
    val cTime:String = "",
    @ColumnInfo("head_img")
    val headImg:String = "",
    @ColumnInfo("is_author")
    val isAuthor:Int = 0,
    val nick:String = "",
    val password:String = "",
    @ColumnInfo("role_id")
    val roleId:Int = 0,
    @ColumnInfo("name")
    val userName:String = "",
    @ColumnInfo("list")
    val list:ArrayList<String>,
    @ColumnInfo ("focus_count")
    val focusCount:Long,
)